﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace lox_z12Class
{
    public class Token
    {
        public TokenType type;
        public String lexeme;
        public Object literal;
        public int line; // [location]

    public Token(TokenType type, String lexeme, Object literal, int line)
    {
        this.type = type;
        this.lexeme = lexeme;
        this.literal = literal;
        this.line = line;
    }

    public String toString() { return type + " " + lexeme + " " + literal; }
    }

    //就加在这儿吧

}
